package cn.iocoder.yudao.framework.business.category.pojo.form;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.SaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Tag(name = "类目修改 Request VO")
@Data
public class CategorySaveDTO extends SaveDTO {

    @Schema(description = "上级编号", example = "15294")
    private Long parentId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "编码", example = "test")
    private String code;

    @Schema(description = "图标", example = "https://example.local")
    private String iconUrl;

    @Schema(description = "状态：0-启用、1-关闭", example = "1")
    private Integer status;

    @Schema(description = "排序")
    private Integer sort;

}
